package edu.njit.hz278.bean.example;

import org.hibernate.validator.constraints.NotBlank;

public class Empolyee {

	public int id;

	public String firstName;

	public String lastName;

	public double salary;
	
	@NotBlank
	public String title;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public double getSalary() {
		return salary;
	}

	public void setSalary(double salary) {
		this.salary = salary;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	public String toString() {
		return String.format("%d: [%s] %s %s, %f", id, title, firstName,
				lastName, salary);
	}

}
